import 'package:flutter/material.dart';


class Activity2 extends StatefulWidget {
  const Activity2({Key? key}) : super(key: key);

  @override
  _Activity2State createState() => _Activity2State();
}

class _Activity2State extends State<Activity2> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData.light(),
      home: _Home(),
    );
  }
}


class _Home extends StatefulWidget {
  const _Home({Key? key}) : super(key: key);

  @override
  __HomeState createState() => __HomeState();
}

class __HomeState extends State<_Home> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        centerTitle: true,
        title: Text("我是界面2"),
      ),
      body: Center(
         child: Text("我是界面2"),
      ),
    );
  }
}
